﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Reflection;
using System.IO;

namespace Easyleave.Logic.Membership
{
    class Util
    {
        public static XmlDocument GetMemebershipXml()
        {
            Assembly assembly = typeof(MembershipImpl).Assembly;
            string ns = assembly.GetName().Name.ToString() + ".Membership";
            Stream xmlStream = assembly.GetManifestResourceStream(ns + ".Membership.xml");
            XmlDocument doc = new XmlDocument();
            doc.Load(xmlStream);
            return doc;
        }
    }
}
